package xyz.sunne.api;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.sunne.entity.SysUser;
import xyz.sunne.response.ResponseResult;
import xyz.sunne.service.SysUserService;

/**
 * @author Sunne
 * @version 1.0
 * @date 2021/9/27 0027
 */
@RequestMapping("sysuser")
@RestController
@Api(tags = "系统用户控制")
public class SysUserApi {
    @Autowired
    private SysUserService sysUserService;
    @PostMapping("add")
    public ResponseResult adduser(@RequestBody SysUser sysUser){
        sysUserService.addUser(sysUser);
        return ResponseResult.ok();
    }
}
